package com.jumi.microservice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 商品sku库存流水表
 *
 * @author Administrator
 */
@TableName("inventory_goods_stock_log")
@ApiModel(value = "GoodsStockLog对象", description = "商品sku库存流水表")
public class GoodsStockLogDO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    @ApiModelProperty(value = "商品sku id")
    private Long goodsSkuId;

    @ApiModelProperty(value = "商品spu id")
    private Long goodsId;

    @ApiModelProperty(value = "实发仓库ID")
    private Long warehouseId;

    @ApiModelProperty(value = "锁定库存")
    private Integer lockedStorage;

    @ApiModelProperty(value = "库存类型，1真实库存，2.预售库存")
    private Integer inventoryType;

    private Long userAccountId;
    private LocalDateTime requestTime;

    @ApiModelProperty(value = "添加时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getLockedStorage() {
        return lockedStorage;
    }

    public void setLockedStorage(Integer lockedStorage) {
        this.lockedStorage = lockedStorage;
    }


    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Long getGoodsSkuId() {
        return goodsSkuId;
    }

    public void setGoodsSkuId(Long goodsSkuId) {
        this.goodsSkuId = goodsSkuId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getInventoryType() {
        return inventoryType;
    }

    public void setInventoryType(Integer inventoryType) {
        this.inventoryType = inventoryType;
    }

    public Long getUserAccountId() {
        return userAccountId;
    }

    public void setUserAccountId(Long userAccountId) {
        this.userAccountId = userAccountId;
    }

    public LocalDateTime getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(LocalDateTime requestTime) {
        this.requestTime = requestTime;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    @Override
    public String toString() {
        return "GoodsStockLogDO{" +
                "id=" + id +
                ", orderSn='" + orderSn + '\'' +
                ", goodsSkuId=" + goodsSkuId +
                ", goodsId=" + goodsId +
                ", warehouseId=" + warehouseId +
                ", lockedStorage=" + lockedStorage +
                ", inventoryType=" + inventoryType +
                ", userAccountId=" + userAccountId +
                ", requestTime=" + requestTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
